import request from '@/utils/request'

// 查询租户组列表
export function listgroup(query) {
  return request({
    url: '/system/group/list',
    method: 'get',
    params: query
  })
}

// 查询租户组详细
export function getgroup(groupId) {
  return request({
    url: '/system/group/query/' + groupId,
    method: 'get'
  })
}
// 查询租户组详细
export function getAllgroupTent(query) {
  return request({
    url: '/system/tenant/all',
    method: 'get',
    params: query
  })
}

// 新增租户组
export function addgroup(data) {
  return request({
    url: '/system/group/add',
    method: 'post',
    data: data
  })
}

// 修改租户组
export function updategroup(data) {
  return request({
    url: '/system/group/edit',
    method: 'put',
    data: data
  })
}

// 删除租户组
export function delgroup(groupId) {
  return request({
    url: '/system/group/remove/' + groupId,
    method: 'delete'
  })
}
// 租户组状态修改
export function changeAvl(data) {
  return request({
    url: '/system/group/avl',
    method: 'post',
    data: data
  })
}